<#include "/common/_layout.html"/>
<@layout>
<h1>goods管理&nbsp;&nbsp;
<a href="/admin/goods/add">创建goods</a>
</h1>
<div class="table_box">
	<table class="list">
		<tbody>
			<tr>
				<th width="4%">id</th>
				<th width="4%">分类</th>
				<th width="15%">标题</th>
				<th width="30%">subtitle</th>
				<th width="10%">img</th>
				<th width="6%">操作</th>
			</tr>
			
			<#list goodsPage.getList() as x>
			<tr>
				<td style="text-align:left;">${x.id}</td>
				<td style="text-align:left;">${x.fgoodstype}</td>
				
				<td style="text-align:left;">${x. name}</td>
				<td style="text-align:left;">${x. subtitle}</td>
				<td style="text-align:left;"><img height="50" width="50" src= ${x.img}></td>
				<td style="text-align:left;">
				
					&nbsp;&nbsp;<a href="/admin/goods/delete/${x.id}">删除</a>
					&nbsp;&nbsp;<a href="/admin/goods/edit/${x.id}">修改</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "/common/_paginate.html" />
	<@paginate currentPage=goodsPage.pageNumber totalPage=goodsPage.totalPage actionUrl="/goods/" />
</div>
</@layout>